(function (w) {
    w.get_global_token = function () {
            var a = $("#asToken", top.document).val();
            return a;
    };

    w.global_AppMessage = function (t, msg) {
        top.appMessage(t, msg);
    }

    w.global_showMenuMask = function (action) {
        top.showMenuMask(action);
    }

    w.global_process = function (action) {
        if (arguments[1] !== undefined) {
            top.Process(action, arguments[1]);
        }
        else {
            top.Process(action);
        }
    }

    w.global_copyProcess = function (action) {
        top.copyProcess(action);
    }

    w.global_udpateProcess = function (action) {
        top.udpateProcess(action);
    }

    w.global_backupProcess = function (action) {
        top.backupProcess(action);
    }

    w.global_loadTopAccounstInfo = function () {
        top.loadTopAccounstInfo();
    }

    w.global_ConfirmDialog = function (title, msg, callback) {
        top.ConfirmDialog(title, msg, callback);
    }

    w.global_AlertDialog = function (title, msg, type, callback) {
        top.AlertDialog(title, msg, type, callback);
    }

    w.resizeFrameHeight = function (h) {
        resizeFrameHeight1(h);
    }

    w.goTop = goTop1;
})(window)